<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">-->
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Studio7 - Omega</title>
<link rel="stylesheet" type="text/css" media="screen" href="css/main.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/tab.css" />
</head>
<body>
	<%@page import="java.util.*, studio7Omega.modelo.Usuario" %>
	<% Usuario user = (Usuario)session.getAttribute( "USUARIO" ); %>
	<% int idUsuario = user.getIdUsuario(); %>
	<% String mnuOpcion = request.getParameter("mnuOpcion"); %>
	<% if( mnuOpcion == null ) mnuOpcion = "001";  %>
	<table border="0" cellpadding="0" cellspacing="0" id="mainContainer">
		<tr>
			<td height="70">
				<table id="mainCab" width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td valign="bottom">
							<table cellspacing="0" cellpadding="0" border="0" align="right">
								<tr>
									<td align="right" colspan="9"><label>Bienvenido: <% out.print( user.getNombre() ); %></label></td>
									<td>&nbsp;<font color="#C3C3C3">|</font>&nbsp;</td>
									<td><strong><label><a href="LogoutServlet"><font color="red">Cerrar sesi&oacute;n</font></a></label></strong></td>
									<td>&nbsp;&nbsp;&nbsp;</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td valign="bottom">
							<form action="" method="POST" id="formMenu">
								<input type="hidden" value="001" id="mnuOpcion" name="mnuOpcion" />
								<table cellspacing="0" cellpadding="0" id="mainMenu">
									<tr>
										<td class="mnuSep"><img width="10" src="images/common/spacer.gif"></td>
										<td>
											<table cellspacing="0" cellpadding="0" onclick="" class="mnuElement" id="mainMenu_001">
												<tr>
													<td class="<% if( mnuOpcion.equals( "001" ) ) { out.print( "mnuActivoIzq" ); } else { out.print( "mnuInactivoIzq" ); } %>"><img width="7" src="images/common/spacer.gif"></td>
													<td class="<% if( mnuOpcion.equals( "001" ) ) { out.print( "mnuActivoTxt" ); } else { out.print( "mnuInactivoTxt" ); } %>"><a href="javascript:cargarMenu( '001' );">Mantenimiento</a></td>
													<td class="<% if( mnuOpcion.equals( "001" ) ) { out.print( "mnuActivoDer" ); } else { out.print( "mnuInactivoDer" ); } %>"><img width="8" src="images/common/spacer.gif"></td>
												</tr>
											</table>
										</td>
										<td class="mnuSep"><img src="images/common/spacer.gif"></td>
										<td>
											<table cellspacing="0" cellpadding="0" onclick="" class="mnuElement" id="mainMenu_002">
												<tr>
													<td class="<% if( mnuOpcion.equals( "002" ) ) { out.print( "mnuActivoIzq" ); } else { out.print( "mnuInactivoIzq" ); } %>"><img width="7" src="images/common/spacer.gif"></td>
													<td class="<% if( mnuOpcion.equals( "002" ) ) { out.print( "mnuActivoTxt" ); } else { out.print( "mnuInactivoTxt" ); } %>"><a href="javascript:cargarMenu( '002' );">Reserva</a></td>
													<td class="<% if( mnuOpcion.equals( "002" ) ) { out.print( "mnuActivoDer" ); } else { out.print( "mnuInactivoDer" ); } %>"><img width="8" src="images/common/spacer.gif"></td>
												</tr>
											</table>
										</td>
										<td class="mnuEnd"><img width="7" src="images/common/spacer.gif"></td>
									</tr>
								</table>
							</form>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td id="titleBar">&nbsp;</td>
		</tr>
		<tr>
			<td id="menuBar"></td>
		</tr>
		<tr>
			<td valign="top">
				<table height="455px" cellspacing="0" cellpadding="0" border="0" class="bodyContainer">
					<tr>
						<td valign="top" nowrap="nowrap" bgcolor="#E1E1E1" align="left">
							<table cellspacing="0" cellpadding="0" border="0">
								<tr>
									<td valign="top">
										<div style="width: 165px; overflow: hidden;" id="contentMenu" class="leftMenu">
											<% if ( mnuOpcion.equals( "001" ) ) { %>
												<table border="0" cellpadding="0" cellspacing="0" class="leftMenu">
													<tr>
														<td>
															<table class="menu" border="0" cellpadding="0" cellspacing="0">
																<tr>
																	<td>
																		<table border="0" cellpadding="0" cellspacing="0" class="titleMenu">
																			<tr>
																				<td background="images/css/main/menu_r2_c2.gif" width="5" height="21"></td>
																				<td background="images/css/main/menu_r2_c3.gif" width="150">Instrumento</td>
																				<td background="images/css/main/menu_r2_c5.gif" width="6" height="21"></td>
																			</tr>
																		</table>
																	</td>
																</tr>
																<tr>
																	<td>
																		<table border="0" cellpadding="0" cellspacing="0" class="elementMenu">
																			<tr>
																				<td width="24" height="19" align="center" valign="middle" class="iconMenu"><img src="images/common/icon.gif" width="15" height="15"></td>
																				<td width="136" class="textMenu" onclick="cargarOpcion( 'consultar_item' );">Consultar Instrumento</td>
																			</tr>
																			<% if ( idUsuario == 1 ) { %>
																			<tr>
																				<td width="24" height="19" align="center" valign="middle" class="iconMenu"><img src="images/common/icon.gif" width="15" height="15"></td>
																				<td width="136" class="textMenu" onclick="cargarOpcion( 'registrar_item' );">Registrar Instrumento</td>
																			</tr>
																			<% } %>
																		</table>
																	</td>
																</tr>
															</table>
														</td>
													</tr>
													<tr>
														<td>&nbsp;</td>
													</tr>
													<tr>
														<td>
															<table class="menu" border="0" cellpadding="0" cellspacing="0">
																<tr>
																	<td>
																		<table border="0" cellpadding="0" cellspacing="0" class="titleMenu">
																			<tr>
																				<td background="images/css/main/menu_r2_c2.gif" width="5" height="21"></td>
																				<td background="images/css/main/menu_r2_c3.gif" width="150">Servicio</td>
																				<td background="images/css/main/menu_r2_c5.gif" width="6" height="21"></td>
																			</tr>
																		</table>
																	</td>
																</tr>
																<tr>
																	<td>
																		<table border="0" cellpadding="0" cellspacing="0" class="elementMenu">
																			<tr>
																				<td width="24" height="19" align="center" valign="middle" class="iconMenu"><img src="images/common/icon.gif" width="15" height="15"></td>
																				<td width="136" class="textMenu" onclick="cargarOpcion( 'consultar_servicio' );">Consultar Servicio</td>
																			</tr>
																			<% if ( idUsuario == 1 ) { %>
																			<tr>
																				<td width="24" height="19" align="center" valign="middle" class="iconMenu"><img src="images/common/icon.gif" width="15" height="15"></td>
																				<td width="136" class="textMenu" onclick="cargarOpcion( 'registrar_servicio' );">Registrar Servicio</td>
																			</tr>
																			<% } %>
																		</table>
																	</td>
																</tr>
															</table>
														</td>
													</tr>
													<tr>
														<td>&nbsp;</td>
													</tr>
													<tr>
														<td>
															<table class="menu" border="0" cellpadding="0" cellspacing="0">
																<tr>
																	<td>
																		<table border="0" cellpadding="0" cellspacing="0" class="titleMenu">
																			<tr>
																				<td background="images/css/main/menu_r2_c2.gif" width="5" height="21"></td>
																				<td background="images/css/main/menu_r2_c3.gif" width="150">Sala</td>
																				<td background="images/css/main/menu_r2_c5.gif" width="6" height="21"></td>
																			</tr>
																		</table>
																	</td>
																</tr>
																<tr>
																	<td>
																		<table border="0" cellpadding="0" cellspacing="0" class="elementMenu">
																			<tr>
																				<td width="24" height="19" align="center" valign="middle" class="iconMenu"><img src="images/common/icon.gif" width="15" height="15"></td>
																				<td width="136" class="textMenu" onclick="cargarOpcion( 'consultar_sala' );">Consultar Sala</td>
																			</tr>
																			<% if ( idUsuario == 1 ) { %>
																			<tr>
																				<td width="24" height="19" align="center" valign="middle" class="iconMenu"><img src="images/common/icon.gif" width="15" height="15"></td>
																				<td width="136" class="textMenu" onclick="cargarOpcion( 'registrar_sala' );">Registrar Sala</td>
																			</tr>
																			<tr>
																				<td width="24" height="19" align="center" valign="middle" class="iconMenu"><img src="images/common/icon.gif" width="15" height="15"></td>
																				<td width="136" class="textMenu" onclick="cargarOpcion( 'armar_sala' );">Armar Sala</td>
																			</tr>
																			<% } %>
																		</table>
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											<% } else { %>
												<table border="0" cellpadding="0" cellspacing="0" class="leftMenu">
													<tr>
														<td>
															<table class="menu" border="0" cellpadding="0" cellspacing="0">
																<tr>
																	<td>
																		<table border="0" cellpadding="0" cellspacing="0" class="titleMenu">
																			<tr>
																				<td background="images/css/main/menu_r2_c2.gif" width="5" height="21"></td>
																				<td background="images/css/main/menu_r2_c3.gif" width="150">Cliente</td>
																				<td background="images/css/main/menu_r2_c5.gif" width="6" height="21"></td>
																			</tr>
																		</table>
																	</td>
																</tr>
																<tr>
																	<td>
																		<table border="0" cellpadding="0" cellspacing="0" class="elementMenu">
																			<tr>
																				<td width="24" height="19" align="center" valign="middle" class="iconMenu"><img src="images/common/icon.gif" width="15" height="15"></td>
																				<td width="136" class="textMenu" onclick="cargarOpcion( 'consultar_cliente' );">Consultar Cliente</td>
																			</tr>
																			<% if ( idUsuario != 2 ) { %>
																			<tr>
																				<td width="24" height="19" align="center" valign="middle" class="iconMenu"><img src="images/common/icon.gif" width="15" height="15"></td>
																				<td width="136" class="textMenu" onclick="cargarOpcion( 'registrar_cliente' );">Registrar Cliente</td>
																			</tr>
																			<% } %>
																		</table>
																	</td>
																</tr>
															</table>
														</td>
													</tr>
													<tr>
														<td>&nbsp;</td>
													</tr>
													<tr>
														<td>
															<table class="menu" border="0" cellpadding="0" cellspacing="0">
																<tr>
																	<td>
																		<table border="0" cellpadding="0" cellspacing="0" class="titleMenu">
																			<tr>
																				<td background="images/css/main/menu_r2_c2.gif" width="5" height="21"></td>
																				<td background="images/css/main/menu_r2_c3.gif" width="150">Reserva</td>
																				<td background="images/css/main/menu_r2_c5.gif" width="6" height="21"></td>
																			</tr>
																		</table>
																	</td>
																</tr>
																<tr>
																	<td>
																		<table border="0" cellpadding="0" cellspacing="0" class="elementMenu">
																			<tr>
																				<td width="24" height="19" align="center" valign="middle" class="iconMenu"><img src="images/common/icon.gif" width="15" height="15"></td>
																				<td width="136" class="textMenu" onclick="cargarOpcion( 'consultar_reserva' );">Consultar Reserva</td>
																			</tr>
																			<% if ( idUsuario > 0 ) { %>
																			<tr>
																				<td width="24" height="19" align="center" valign="middle" class="iconMenu"><img src="images/common/icon.gif" width="15" height="15"></td>
																				<td width="136" class="textMenu" onclick="cargarOpcion( 'registrar_reserva' );">Registrar Reserva</td>
																			</tr>
																			<% } %>
																		</table>
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											<% } %>
										</div>
									</td>
								</tr>
							</table>
							<img width="5" height="5" src="images/common/spacer.gif">
						</td>
						<td width="10" class="marginLeft"><img width="7" height="10" src="images/common/spacer.gif"></td>
						<td width="100%" valign="top" nowrap="nowrap" align="left" id="contentResult">
							<iframe width="100%" height="100%" frameborder="0" src="" id="contentResultxx" name="contentResultxx"></iframe>
						</td>
						<td width="10" class="marginRight"><img width="6" height="10" src="images/common/spacer.gif"></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<SCRIPT type="text/javascript">
		function cargarMenu( sOpcion )
		{
			document.getElementById( "mnuOpcion" ).setAttribute( "value", sOpcion );
			document.getElementById( "formMenu" ).submit();
		}
		
		function cargarOpcion( sAccion )
		{
			switch( sAccion )
			{
				case 'consultar_item':
					sSrc = 'Lista_instrumentoDisponible.jsp';
					break;
				case 'registrar_item':
					sSrc = 'registrar_instrumento.jsp';
					break;
				case 'consultar_servicio':
					sSrc = 'consultar_servicio.jsp';
					break;
				case 'registrar_servicio':
					sSrc = 'registrar_servicio.jsp';
					break;
				case 'consultar_sala':
					sSrc = 'busqueda_sala.jsp';
					break;
				case 'registrar_sala':
					sSrc = 'registro_sala.jsp';
					break;
				case 'armar_sala':
					sSrc = 'armadoSala.jsp';
					break;
				case 'consultar_cliente':
					sSrc = 'consultar_cliente.jsp';
					break;
				case 'registrar_cliente':
					sSrc = 'registrarCliente.jsp';
					break;
				case 'consultar_reserva':
					sSrc = 'consultarreserva.jsp';
					break;
				case 'registrar_reserva':
					sSrc = 'reserva.jsp';
					break;
				default:
					sSrc = '';
			}
			document.getElementById( "contentResultxx" ).setAttribute( "src", sSrc );
		}
	</SCRIPT>
</body>
</html>